home *** CD-ROM | disk | FTP | other *** search
- Path: airdmhor.gen.nz!not-for-mail
- From: gumboot@airdmhor.gen.nz (Simon Hosie)
- Newsgroups: comp.lang.c
- Subject: Re: Settle a bet please
- Date: 9 Apr 1996 05:35:54 +1200
- Organization: Airdmhor : a couple of BBS's, a bunch of people, and a cat.
- Message-ID: <4kbipq$k23@airdmhor.gen.nz>
- References: <4jfopb$o9n@news1.sympatico.ca> <Dp11Bx.2o7@watserv3.uwaterloo.ca> <4k41v6$60v@niamh.indigo.ie> <4k4d7u$rhk@solutions.solon.com>
- NNTP-Posting-Host: airdmhor.gen.nz
- X-Newsreader: TIN [version 1.2 PL2]
-
- In article <4k41v6$60v@niamh.indigo.ie>, Niall Smart <nsmart@indigo.ie> wrote:
- > int i; char Name[7] = "My Name";
- > char More[] = "AAAAAAA";
-
- Peter Seebach:
- > There is no "char *More[]" here, and the contents of both Name and More are
- > writable, because they are arrays of non-const. What is most likely
- > causing them not to be adjacent on some machines is a spare byte of
- > padding to keep everything word-aligned. This is not a language feature,
- > just a likely explanation.
-
- Another possibility is that they're ordered backwards in memory. I don't
- know why, but I've seen it happen - actually I do know why, it's because I
- looked. I don't know why the compiler did it.
-